<template>
  <el-tabs v-model="tabNum" type="border-card" @tab-click="tabClick">
    <el-tab-pane label="已开启贷超"  >
        <loan-market-channle-table-list :status="'1'" v-if="tabNum==0"></loan-market-channle-table-list>
    </el-tab-pane>
    <el-tab-pane label="已关闭贷超"  >
        <loan-market-channle-table-list :status="'0'" v-if="tabNum==1"></loan-market-channle-table-list>
    </el-tab-pane>
</el-tabs>
</template>

<script>
import loantableList from './TableList'
export default {
    name:"LoanMarketChannel",
    components:{
      loanMarketChannleTableList:loantableList
    },
    data(){
        return{
            tabNum:0
        }
    },
    created(){
        // this.channelCode=this.$route.query.channelCode;
        // this.getTableList();
    },
    methods:{
        tabClick(tab, event){
           this.tabNum=tab.index;
        }
    }
}
</script>